ci: Hard error on all -fsanitize=undefined warnings
authorColin Walters <walters@verbum.org>
Fri, 17 Feb 2017 21:59:21 +0000 (16:59 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 21 Feb 2017 16:59:19 +0000 (16:59 +0000)
I saw in a recent test log a ton of spam
```
libglnx/glnx-dirfd.c:253:3: runtime error: null pointer passed as argument 1, which is declared to never be null
```
which actually turned out to be libglnx getting reverted.  But
let's be sure now we actually bomb out quickly on UBSAN warnings
in general.

Closes: #693
Approved by: jlebon

.redhat-ci.yml

index 11e5a9d6c7bebdd6c3549c22fb990389be0851b5..74778f8acea1c734884ad6802f7e57782746bc76 100644 (file)
@@ -12,7 +12,7 @@ packages:
   - libasan
 
 env:
-    CFLAGS: '-fsanitize=undefined -fsanitize=address'
+    CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address'
     ASAN_OPTIONS: 'detect_leaks=0'  # Right now we're not fully clean, but this gets us use-after-free etc
     # TODO when we're doing leak checks: G_SLICE: "always-malloc"